Optimal. Leaf size=329 \[ -\frac {2 b \cos ^5(c+d x) \sqrt {a+b \sin (c+d x)}}{11 d}-\frac {32 a \left (a^4-6 a^2 b^2-27 b^4\right ) E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{1155 b^4 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}+\frac {8 \left (4 a^6-25 a^4 b^2+6 a^2 b^4+15 b^6\right ) F\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{1155 b^4 d \sqrt {a+b \sin (c+d x)}}+\frac {2 \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)} \left (a^2+3 b^2+28 a b \sin (c+d x)\right )}{231 b d}-\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (4 a^4-21 a^2 b^2-15 b^4-3 a b \left (a^2+31 b^2\right ) \sin (c+d x)\right )}{1155 b^3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.44, antiderivative size = 329, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 7, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.304, Rules used = {2771, 2944,
2831, 2742, 2740, 2734, 2732} \begin {gather*} \frac {2 \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)} \left (a^2+28 a b \sin (c+d x)+3 b^2\right )}{231 b d}-\frac {32 a \left (a^4-6 a^2 b^2-27 b^4\right ) \sqrt {a+b \sin (c+d x)} E\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{1155 b^4 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (4 a^4-3 a b \left (a^2+31 b^2\right ) \sin (c+d x)-21 a^2 b^2-15 b^4\right )}{1155 b^3 d}+\frac {8 \left (4 a^6-25 a^4 b^2+6 a^2 b^4+15 b^6\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}} F\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{1155 b^4 d \sqrt {a+b \sin (c+d x)}}-\frac {2 b \cos ^5(c+d x) \sqrt {a+b \sin (c+d x)}}{11 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 2771
Rule 2831
Rule 2944
Rubi steps
\begin {align*} \int \cos ^4(c+d x) (a+b \sin (c+d x))^{3/2} \, dx &=-\frac {2 b \cos ^5(c+d x) \sqrt {a+b \sin (c+d x)}}{11 d}+\frac {2}{11} \int \frac {\cos ^4(c+d x) \left (\frac {11 a^2}{2}+\frac {b^2}{2}+6 a b \sin (c+d x)\right )}{\sqrt {a+b \sin (c+d x)}} \, dx\\ &=-\frac {2 b \cos ^5(c+d x) \sqrt {a+b \sin (c+d x)}}{11 d}+\frac {2 \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)} \left (a^2+3 b^2+28 a b \sin (c+d x)\right )}{231 b d}+\frac {8 \int \frac {\cos ^2(c+d x) \left (\frac {3}{4} b^2 \left (29 a^2+3 b^2\right )+\frac {3}{4} a b \left (a^2+31 b^2\right ) \sin (c+d x)\right )}{\sqrt {a+b \sin (c+d x)}} \, dx}{231 b^2}\\ &=-\frac {2 b \cos ^5(c+d x) \sqrt {a+b \sin (c+d x)}}{11 d}+\frac {2 \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)} \left (a^2+3 b^2+28 a b \sin (c+d x)\right )}{231 b d}-\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (4 a^4-21 a^2 b^2-15 b^4-3 a b \left (a^2+31 b^2\right ) \sin (c+d x)\right )}{1155 b^3 d}+\frac {32 \int \frac {-\frac {3}{8} b^2 \left (a^4-114 a^2 b^2-15 b^4\right )-\frac {3}{2} a b \left (a^4-6 a^2 b^2-27 b^4\right ) \sin (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx}{3465 b^4}\\ &=-\frac {2 b \cos ^5(c+d x) \sqrt {a+b \sin (c+d x)}}{11 d}+\frac {2 \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)} \left (a^2+3 b^2+28 a b \sin (c+d x)\right )}{231 b d}-\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (4 a^4-21 a^2 b^2-15 b^4-3 a b \left (a^2+31 b^2\right ) \sin (c+d x)\right )}{1155 b^3 d}-\frac {\left (16 a \left (a^4-6 a^2 b^2-27 b^4\right )\right ) \int \sqrt {a+b \sin (c+d x)} \, dx}{1155 b^4}+\frac {\left (4 \left (4 a^6-25 a^4 b^2+6 a^2 b^4+15 b^6\right )\right ) \int \frac {1}{\sqrt {a+b \sin (c+d x)}} \, dx}{1155 b^4}\\ &=-\frac {2 b \cos ^5(c+d x) \sqrt {a+b \sin (c+d x)}}{11 d}+\frac {2 \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)} \left (a^2+3 b^2+28 a b \sin (c+d x)\right )}{231 b d}-\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (4 a^4-21 a^2 b^2-15 b^4-3 a b \left (a^2+31 b^2\right ) \sin (c+d x)\right )}{1155 b^3 d}-\frac {\left (16 a \left (a^4-6 a^2 b^2-27 b^4\right ) \sqrt {a+b \sin (c+d x)}\right ) \int \sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}} \, dx}{1155 b^4 \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}+\frac {\left (4 \left (4 a^6-25 a^4 b^2+6 a^2 b^4+15 b^6\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}\right ) \int \frac {1}{\sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}}} \, dx}{1155 b^4 \sqrt {a+b \sin (c+d x)}}\\ &=-\frac {2 b \cos ^5(c+d x) \sqrt {a+b \sin (c+d x)}}{11 d}-\frac {32 a \left (a^4-6 a^2 b^2-27 b^4\right ) E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{1155 b^4 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}+\frac {8 \left (4 a^6-25 a^4 b^2+6 a^2 b^4+15 b^6\right ) F\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{1155 b^4 d \sqrt {a+b \sin (c+d x)}}+\frac {2 \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)} \left (a^2+3 b^2+28 a b \sin (c+d x)\right )}{231 b d}-\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (4 a^4-21 a^2 b^2-15 b^4-3 a b \left (a^2+31 b^2\right ) \sin (c+d x)\right )}{1155 b^3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.09, size = 278, normalized size = 0.84 \begin {gather*} \frac {64 \left (b^2 \left (a^4-114 a^2 b^2-15 b^4\right ) F\left (\frac {1}{4} (-2 c+\pi -2 d x)|\frac {2 b}{a+b}\right )+4 \left (a^5-6 a^3 b^2-27 a b^4\right ) \left ((a+b) E\left (\frac {1}{4} (-2 c+\pi -2 d x)|\frac {2 b}{a+b}\right )-a F\left (\frac {1}{4} (-2 c+\pi -2 d x)|\frac {2 b}{a+b}\right )\right )\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}-b (a+b \sin (c+d x)) \left (2 \left (64 a^4-366 a^2 b^2+195 b^4\right ) \cos (c+d x)+5 b^2 \left (-4 a^2+93 b^2\right ) \cos (3 (c+d x))+105 b^4 \cos (5 (c+d x))-16 a b \left (3 a^2+128 b^2\right ) \sin (2 (c+d x))-280 a b^3 \sin (4 (c+d x))\right )}{9240 b^4 d \sqrt {a+b \sin (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1354\) vs.
\(2(371)=742\).
time = 2.59, size = 1355, normalized size = 4.12
method | result | size |
default | \(\text {Expression too large to display}\) | \(1355\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.15, size = 583, normalized size = 1.77 \begin {gather*} \frac {2 \, {\left (2 \, \sqrt {2} {\left (8 \, a^{6} - 51 \, a^{4} b^{2} + 126 \, a^{2} b^{4} + 45 \, b^{6}\right )} \sqrt {i \, b} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) - 3 i \, b \sin \left (d x + c\right ) - 2 i \, a}{3 \, b}\right ) + 2 \, \sqrt {2} {\left (8 \, a^{6} - 51 \, a^{4} b^{2} + 126 \, a^{2} b^{4} + 45 \, b^{6}\right )} \sqrt {-i \, b} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) + 3 i \, b \sin \left (d x + c\right ) + 2 i \, a}{3 \, b}\right ) - 24 \, \sqrt {2} {\left (-i \, a^{5} b + 6 i \, a^{3} b^{3} + 27 i \, a b^{5}\right )} \sqrt {i \, b} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) - 3 i \, b \sin \left (d x + c\right ) - 2 i \, a}{3 \, b}\right )\right ) - 24 \, \sqrt {2} {\left (i \, a^{5} b - 6 i \, a^{3} b^{3} - 27 i \, a b^{5}\right )} \sqrt {-i \, b} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) + 3 i \, b \sin \left (d x + c\right ) + 2 i \, a}{3 \, b}\right )\right ) - 3 \, {\left (105 \, b^{6} \cos \left (d x + c\right )^{5} - 5 \, {\left (a^{2} b^{4} + 3 \, b^{6}\right )} \cos \left (d x + c\right )^{3} + 2 \, {\left (4 \, a^{4} b^{2} - 21 \, a^{2} b^{4} - 15 \, b^{6}\right )} \cos \left (d x + c\right ) - 2 \, {\left (70 \, a b^{5} \cos \left (d x + c\right )^{3} + 3 \, {\left (a^{3} b^{3} + 31 \, a b^{5}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )\right )} \sqrt {b \sin \left (d x + c\right ) + a}\right )}}{3465 \, b^{5} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \sin {\left (c + d x \right )}\right )^{\frac {3}{2}} \cos ^{4}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\cos \left (c+d\,x\right )}^4\,{\left (a+b\,\sin \left (c+d\,x\right )\right )}^{3/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________